package router

import (
	"bridge_viewing/api"
	"bridge_viewing/apibase"
	"github.com/gin-gonic/gin"
)

func initRouteV1(Router *gin.RouterGroup) {
	//登录接口
	loginRouter := Router.Group("/login")
	{
		//loginRouter.POST("/fetch_phone_code", apibase.GetHandler(api.FetchPhoneVerifyCodeApi))
		//loginRouter.POST("/phone_login", apibase.GetHandler(api.LoginByPhoneAndCodeApi))
		loginRouter.POST("/fetch_token", apibase.GetHandler(api.FetchTokenApi))
	}

	sceneRouter := Router.Group("/scene")
	{
		sceneRouter.POST("/list", apibase.GetHandler(api.ListSceneApi))
		sceneRouter.POST("/room/list", apibase.GetHandler(api.ListSceneRoomApi))
		sceneRouter.POST("/question/list", apibase.GetHandler(api.ListRoomQuestionApi))
		sceneRouter.POST("/question/submit", apibase.GetHandler(api.SubmitUserQuestionApi))
		sceneRouter.POST("/question/check", apibase.GetHandler(api.CheckUserQuestionApi))
		sceneRouter.POST("/user/score", apibase.GetHandler(api.FetchUserScoreApi))
	}
}
